package com.ruoyi.project.relation.mapper;

import java.util.List;
import com.ruoyi.project.relation.domain.OneWayBusinessRelationship;
import com.ruoyi.project.relation.domain.qo.OneWayBusinessRelationshipQO;
import org.apache.ibatis.annotations.Update;

/**
 * 单向业务关联Mapper接口
 *
 * @author wb
 * @date 2021-04-14
 */
public interface OneWayBusinessRelationshipMapper
{
    /**
     * 新增单向业务关联
     *
     * @param oneWayBusinessRelationship 单向业务关联
     * @return 结果
     */
    public int insertOneWayBusinessRelationship(OneWayBusinessRelationship oneWayBusinessRelationship);

    /**
     * 修改单向业务关联
     *
     * @param oneWayBusinessRelationship 单向业务关联
     * @return 结果
     */
    public int updateOneWayBusinessRelationship(OneWayBusinessRelationship oneWayBusinessRelationship);



    /**
     * 精确查询单向业务关联列表,用于逻辑关联表处理
     *
     * @param oneWayBusinessRelationshipQO 单向业务关联
     * @return 单向业务关联集合
     */
    public List<OneWayBusinessRelationship> exactQueryOneWayBusinessRelationshipList(OneWayBusinessRelationshipQO oneWayBusinessRelationshipQO);




    /**
     * 批量删除单向业务关联
     *
     * @param oneWayBusinessRelationshipQO
     * @return 结果
     */
    public int deleteOneWayBusinessRelationshipByOneWayBusinessRelationshipQO(OneWayBusinessRelationshipQO oneWayBusinessRelationshipQO);



    /**
     * 批量删除单向业务关联
     *
     * @param oneWayBusinessRelationshipIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteOneWayBusinessRelationshipByIds(Long... oneWayBusinessRelationshipIds);

}
